import { Routes } from '@angular/router';
import { StockMangeComponent } from './components/stock/stock-mange/stock-mange.component';
import { DashboardComponent } from './components/dashboard/dashboard.component';
import { StockFromComponent } from './components/stock/stock-from/stock-from.component';

export const routes: Routes = [
  {
    path: '', redirectTo: '/dashboard', pathMatch: 'full'

  },
  {
    path: 'stock', component: StockMangeComponent

  },
  {
    path: 'dashboard', component: DashboardComponent

  },
  {
    path: 'stock/:id', component: StockFromComponent

  }

];
